Skip to content

feat(code-block): added alwaysShowActionbar attribute (#DS-4721) - #1891

Open
artembelik wants to merge 2 commits into
mainfrom
feat/DS-4721
Open

feat(code-block): added alwaysShowActionbar attribute (#DS-4721)#1891
artembelik wants to merge 2 commits into
mainfrom
feat/DS-4721

Conversation

@artembelik

Copy link
Copy Markdown
Contributor

No description provided.

@artembelik
artembelik requested a review from lskramarov as a code owner August 13, 2026 12:56
Copilot AI lite review requested due to automatic review settings August 13, 2026 12:56
@github-actions github-actions Bot added the enhancement New feature or request label Aug 13, 2026
@artembelik artembelik self-assigned this Aug 13, 2026
@github-actions

github-actions Bot commented Aug 13, 2026

Copy link
Copy Markdown

Visit the preview URL for this PR (updated for commit 831792d):

https://koobiq-next--prs-1891-4ofsoq9t.web.app

(expires Mon, 17 Aug 2026 08:41:49 GMT)

🔥 via Firebase Hosting GitHub Action 🌎

Sign: c9e37e518febda70d0317d07e8ceb35ac43c534c

Copilot AI left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Adds a new alwaysShowActionbar input to the KbqCodeBlock component so consumers can keep the action panel visible even when tabs are hidden (instead of only showing it on hover). The implementation shifts actionbar visibility to a signal-driven computed state and documents the new behavior across docs and examples.

Changes:

  • Introduced alwaysShowActionbar input and signal-based actionbarVisible computation to drive the kbq-code-block_show-actionbar host class.
  • Updated docs example(s) to demonstrate the new attribute and signal-based toggling.
  • Added/updated unit tests and API guard snapshot to cover and expose the new public API surface.

Reviewed changes

Copilot reviewed 6 out of 6 changed files in this pull request and generated no comments.

Show a summary per file
File Description
tools/public_api_guard/components/code-block.api.md Updates public API snapshot to include alwaysShowActionbar (and the new internal visibility signal member).
packages/docs-examples/components/code-block/code-block-with-filled/code-block-with-filled-example.ts Extends the example UI to toggle alwaysShowActionbar and updates bindings to signal-style reads.
packages/components/code-block/code-block.ts Implements the new input and refactors actionbar visibility logic to a computed signal + host class binding.
packages/components/code-block/code-block.spec.ts Adds unit coverage for always-on actionbar behavior and restoring hover-based behavior when disabled.
packages/components/code-block/code-block.ru.md Documents the updated action panel behavior and the new alwaysShowActionbar attribute (RU).
packages/components/code-block/code-block.en.md Documents the updated action panel behavior and the new alwaysShowActionbar attribute (EN).

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread packages/components/code-block/code-block.ts Outdated
Comment thread packages/components/code-block/code-block.ts
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants